package com.sinosoft.domain;

/**
 * @author hyy85
 * @version 1.0
 * @date: 13/6/2018 上午 11:27<br/>
 * @description 回参结构
 * @since 1.8
 */
public class Result<T> {

    private int returnCode;

    private String returnMsg;

    private T data;

    public int getReturnCode() {
        return returnCode;
    }

    public void setReturnCode(int returnCode) {
        this.returnCode = returnCode;
    }

    public String getReturnMsg() {
        return returnMsg;
    }

    public void setReturnMsg(String returnMsg) {
        this.returnMsg = returnMsg;
    }

    public T getData() {
        return data;
    }

    public void setData(T data) {
        this.data = data;
    }

    @Override
    public String toString() {
        return "Result{" +
                "returnCode=" + returnCode +
                ", returnMsg='" + returnMsg + '\'' +
                ", data=" + data +
                '}';
    }
}
